package reuseplugin.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import reuseplugin.Activator;

/**
 * Class used to initialize default preference values.
 */
/**
 * @author Julius Ollesch
 * 
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @seeorg.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#
	 * initializeDefaultPreferences()
	 */
	@Override
	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.P_PATH, System
				.getProperty("user.home"));
		store.setDefault(PreferenceConstants.P_SERVER, "localhost");
		store.setDefault(PreferenceConstants.P_USER, "");
		store.setDefault(PreferenceConstants.P_PASSWORD, "");
	}

}
